<html>
<head>
<script language="JavaScript" type="text/javascript" src="hints.js"></script>
</head>

<body>
	<form>
	<fieldset>
        	<legend>添加品牌</legend>
	<table>
		<tr>
			<td>   选择一个商品类别 </td>
			<td>
				<select name="class_menus" id="class_menus" onchange="hints(this);">
					{foreach $product_class as $value}
						<option value={$value.product_class}>{$value.product_class}</option>	
					{/foreach}
	        		</select>
			</td>

		</tr>
		<tr>
			<td>	选择一个商品品牌 </td>
			<td>
				<select name="brand_menus" id="brand_menus" onchange="hints_sub(this.form.class_menus,this.form.brand_menus);">
					{foreach $product_brand as $value}
						<option value={$value.product_brand}>{$value.product_brand}</option>	
					{/foreach}
				</select>
			</td>
		</tr>
		<tr>
			<td>  选择一个子品牌 </td>
			<td>
				<select name="sub_brand_menus" id="sub_brand_menus">
					{foreach $product_sub_brand as $value}
						<option value={$value.id}>{$value.product_sub_brand}</option>
					{/foreach}
				</select>
			</td>
		</tr>
	</table>
	</fieldset>
	<fieldset>
		<legend>绑定一个 社团</legend>
		<table>
			<tr>
				<td> 选择社团名称 </td>
				<td>
					<select name="sns_group" id="sns_group">
						{foreach $sns_group as $value}
							<option value={$value.id}>{$value.title}</option>
						{/foreach}
					</select>
				</td>
			</tr>
		</table>
	</fieldset>
	<fieldset>
		<legend>输入产品名称</legend>
		<tr>
			<td>产品名称</td>
			<td>
				<input type="text" name="product"     id="product_name" size="20"/>
			</td>
		<tr>
		<tr>
			<td>产品描述</td>
			<td>
				<input type="text" name-"product_des" id="product_des"  size="20"/>
			</td>
		</tr>
	</fieldset> 

	<input type="button" value="insert" onclick="insert_product();"/>
	</form>
	<span><div id="result"></div><span>
	
</body>
</html>
